package com.prik.factory.abs.pizza;

import com.prik.factory.abs.ingredient.Cheese;
import com.prik.factory.abs.ingredient.Pepperoni;

/**
 * 披萨
 **/
public abstract class Pizza {

    String name;

    public Cheese cheese;

    public Pepperoni pepperoni;

    /**
     * 准备
     * 申明为抽象方法，子类需自行实现原料准备
     */
    public abstract void prepare();

    /**
     * 烘焙
     */
    public void bake() {
        System.out.println("烘焙中...");
    }

    /**
     * 切片
     */
    public void cut() {
        System.out.println("切片中...");
    }

    /**
     * 装盒
     */
    public void box() {
        System.out.println("装盒中...");
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}